import App from './App'

import { filters } from './utils/filters.js'
import store from './store'

// import moment from 'moment' // 日期

// #ifndef VUE3
import Vue from 'vue'
import './uni.promisify.adaptor'
Vue.config.productionTip = false
// Vue.prototype.$store = store;
// Vue.prototype.$moment = moment;


import {
	showToast,
} from '@/utils/util.js';
Vue.prototype.$store = store
Vue.prototype.$showToast = showToast;
App.mpType = 'app'
const app = new Vue({
  ...App
})
// 定义全局自定义过滤器
Object.keys(filters).forEach(key => {
    Vue.filter(key, filters[key])
})
app.$mount()
// #endif

// #ifdef VUE3
import { createSSRApp } from 'vue'
export function createApp() {
  const app = createSSRApp(App)
  return {
    app
  }
}
// #endif